//
//  LGRootViewController.m
//  LiangCang
//
//  Created by MS on 15-12-15.
//  Copyright (c) 2015年 Lemon. All rights reserved.
//

#import "LGRootViewController.h"

@interface LGRootViewController ()

@end

@implementation LGRootViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    //取消自动偏移
    self.automaticallyAdjustsScrollViewInsets = NO;
//    //隐藏导航条
//    [self.navigationController setNavigationBarHidden:YES];
//    //切换状态栏颜色
//    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
    
    NSMutableDictionary * attributes = [NSMutableDictionary dictionary];
    attributes[NSForegroundColorAttributeName] = [UIColor whiteColor];
    attributes[NSFontAttributeName] = [UIFont systemFontOfSize:14];
    self.navigationController.navigationBar.titleTextAttributes =attributes;
    
     MyTabbar * tabBar = [MyTabbar sharedMyTabbar];
    self.tabBar = tabBar;
    
    for (UIView * view in self.tabBarController.view.subviews) {
        NSString * viewName = NSStringFromClass([view class]);
        if ([viewName isEqualToString:@"UIView"]) {
            self.stateSmarkView = view;
        }
    }

    
}


-(void)viewWillAppear:(BOOL)animated
{
     [super viewWillAppear:animated];

//    if (self == self.navigationController.viewControllers[0]) {
//         self.tabBar.hidden = NO;
//    }
//    else{
//        
//        self.tabBar.hidden = YES;
//       
//    }
   
}




-(void)bbClick:(UIButton *)btn
{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
